// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueLazyload from 'vue-lazyload'
import infiniteScroll from 'vue-infinite-scroll'

import store from './store/index'
Vue.use(infiniteScroll)


import Vuex from 'vuex'

Vue.use(infiniteScroll)
Vue.use(Vuex)
import axios from 'axios'
Vue.prototype.$http = axios
Vue.use(VueLazyload, { //懒加载
	loading: '/static/loading-svg/loading-bars.svg' //加载动画

})
import {
	currency
} from "./util/currency"
import './assets/css/base.css'
import './assets/css/checkout.css'
import './assets/css/login.css'
import './assets/css/product.css'

Vue.config.productionTip = false
Vue.filter("currency", currency)

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	components: {
		App
	},
	template: '<App/>'
})